{% extends "order/order_base.html" %}
{% block title %}
    订单详细页
{% endblock %}
{% block content %}
    <ol class="breadcrumb">
      <li><a href="#">首页</a></li>
      <li><a href="#">订单管理</a></li>
      <li class="active">订单详细</li>
    </ol>
    <h3>订单概览</h3>
    <table class="table">
        <tr>
            <td>订单号</td>
            <td>{{ order.order_no }}</td>
        </tr>
        <tr>
            <td>订单状态</td>
            <td class="text-danger border">
                {% if order.is_done == 0 %}
                    <strong>未完成</strong>
                {% elif order.is_done ==1 %}
                    <strong>已完成</strong>
                {% endif %}
            </td>
        </tr>
        <tr>
            <td>下单日期</td>
            <td >{{ order.order_time }}</td>
        </tr>
        <tr>
            <td>订单总价</td>
            <td>{{ tot_price }}</td>
        </tr>
        <tr>
            <td>饭桌</td>
            <td>{{ order.desk.desk_name }}</td>
        </tr>
    </table>
    <h3>所定的菜</h3>
    <table class="table">
        {% for dish in order.dishes %}
            <tr>
                <td>菜名:{{ dish.dish_name }}</td>
                <td>价格:{{ dish.price }}</td>
            </tr>
        {% endfor %}
    </table>
{% endblock %}